package org.lboot.idmo.module.user.params;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.lboot.idmo.validator.IsSex;

import javax.persistence.Column;
import javax.validation.constraints.*;

@Data
@ApiModel(value = "用户新增表单")
public class UserCreateParams {

    @NotBlank(message = "用户账号不可为空")
    @ApiModelProperty("用户账号")
    private String username;

    @NotBlank(message = "用户昵称不可为空")
    @ApiModelProperty("用户昵称")
    private String nickname;

    @ApiModelProperty(value = "密码")
    private String password;

    // @NotBlank(message = "账户类型不可为空")
    @ApiModelProperty(value = "账户类型")
    private String userType;

    /**
     * 账号状态 可选 0 正常！ 1 禁用
     */
    @Min(0)
    @Max(1)
    @ApiModelProperty("账号状态")
    private Integer status = 1;

}
